package com.exam.qc.fallback;


import com.exam.qc.client.ProductFeignClient;
import com.exam.qc.model.Product;
import com.exam.qc.model.ReturnVo;
import org.springframework.stereotype.Component;


@Component
public class ProductFeignClientFallback implements ProductFeignClient {

    @Override
    public ReturnVo listPage(String productName, Integer pageNo, Integer pageSize) {
        return ReturnVo.error("服务器繁忙，请稍后再试！");
    }

    @Override
    public ReturnVo getProList() {
        return ReturnVo.error("服务器繁忙，请稍后再试！");
    }

    @Override
    public ReturnVo saveProduct(Product product) {
        return ReturnVo.error("服务器繁忙，请稍后再试！");
    }
}
